package com.hyg.lib_common.DataModel.QuestionNaire;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.LitePalSupport;

import java.util.ArrayList;
import java.util.List;

public class HygQuestionNaire extends LitePalSupport {
    // 基础属性
    private int id = 0;  //选项序号
    private String QuestionNaireName = "";   //归属何种问卷名称
    private List<Integer> list_subject_id = new ArrayList<>();   //题目的 ID列表组
    private List<HygSubject> list_subject = new ArrayList<>();   //题目组

    //扩展属性
    private String JsonResult = "";      //JSON 文字结果
    private String ScoreResult = "";      //简单的得分结果
    private boolean SelectCheck = false;        // 是否选择了该问卷(交互显示用)

    public HygQuestionNaire(int id, String questionNaireName, List<Integer> list_subject_id, List<HygSubject> list_subject, String jsonResult, String scoreResult, boolean selectCheck) {
        this.id = id;
        QuestionNaireName = questionNaireName;
        this.list_subject_id = list_subject_id;
        this.list_subject = list_subject;
        JsonResult = jsonResult;
        ScoreResult = scoreResult;
        SelectCheck = selectCheck;
    }

    public HygQuestionNaire(int id, String questionNaireName, List<HygSubject> list_subject) {
        this.id = id;
        QuestionNaireName = questionNaireName;
        this.list_subject = list_subject;
    }

    public HygQuestionNaire(int id, String questionNaireName, List<Integer> list_subject_id, List<HygSubject> list_subject) {
        this.id = id;
        QuestionNaireName = questionNaireName;
        this.list_subject_id = list_subject_id;
        this.list_subject = list_subject;
    }

    public HygQuestionNaire() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getQuestionNaireName() {
        return QuestionNaireName;
    }

    public void setQuestionNaireName(String questionNaireName) {
        QuestionNaireName = questionNaireName;
    }

    public List<Integer> getList_subject_id() {
        return list_subject_id;
    }

    public void setList_subject_id(List<Integer> list_subject_id) {
        this.list_subject_id.clear();
        this.list_subject_id.addAll( list_subject_id);
    }

    public List<HygSubject> getlist_subject() {
        return list_subject;
    }

    public void setlist_subject(List<HygSubject> list_subject) {
        this.list_subject.clear();
        this.list_subject.addAll(list_subject);
    }

    public String getJsonResult() {
        return JsonResult;
    }

    public void setJsonResult(String jsonResult) {
        JsonResult = jsonResult;
    }

    public String getScoreResult() {
        return ScoreResult;
    }

    public void setScoreResult(String scoreResult) {
        ScoreResult = scoreResult;
    }

    public boolean isSelectCheck() {
        return SelectCheck;
    }

    public void setSelectCheck(boolean selectCheck) {
        SelectCheck = selectCheck;
    }

}
